﻿using System;
using System.Net;
using System.Runtime.Serialization;

namespace BusinessObjects
{
    [DataContract]
    public class Question : GameObject
    {
        [DataMember]
        public String QuestionText
        {
            get;
            set;
        }

        [DataMember]
        public String Answer1
        {
            get;
            set;
        }

        [DataMember]
        public String Answer2
        {
            get;
            set;
        }

        [DataMember]
        public String Answer3
        {
            get;
            set;
        }

        [DataMember]
        public int CorrectAnswer
        {
            get;
            set;
        }

        public Question()
        {
            QuestionText = null;
            Answer1 = null;
            Answer2 = null;
            Answer3 = null;
            CorrectAnswer = 0;
        }

        public Question(String text, String ans1, String ans2, String ans3, int correct)
        {
            QuestionText = text;
            Answer1 = ans1;
            Answer2 = ans2;
            Answer3 = ans3;
            CorrectAnswer = correct;
        }
    }
}
